<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="m" uri="/cutm_tags"%>
<html>
<head>
<title>串联单人员维护</title>
<link rel="stylesheet"
	href="<s:url value="/common/css/datepicker.css"/>" type="text/css" />
<script type="text/javascript"
	src="<s:url value="/common/script/ui.datepicker.js"/>"></script>
<script type="text/javascript"
	src="<s:url value="/common/script/ui.datepicker-fr.js"/>"></script>
<script type="text/javascript">
$(document).ready(function() {
	$("#editForm").vaildAjax(function(data){
			alert('保存成功');
			BaseJs.setReadonly();
			$('#search').hide();
			$('#save').hide();
		});
});
//提交
function commit(){
	if(BaseJs.confirm('确定要提交吗？')){
		$("#editForm").submit();
	}
}
</script>
</head>
<body>
<h2 class="title"><span>串联单人员维护</span></h2>
<s:form id="serchForm" action="programming/SearchProgram!toProStaff"
	onsubmit="return true">
	<h3>请输入查询条件</h3>
	<table id="sTable" class="form">
		<tbody>
			<tr>
				<th width="20%">编排日期</th>
				<td width="30%"><m:date name="programming.date"
					cssClass="rule[required]" /></td>
				<th width="20%">编排栏目</th>
				<td width="30%"><m:select enumType="program.type"
					name="programming.column" cssClass="rule[required]" /></td>
			</tr>
		</tbody>
	</table>
	<div  class="btnGroup"><s:submit id="search"
		value="查询" /></div>
</s:form>

<s:if test="proStaffInfo!=null">
	<s:form id="editForm" action="programming/EditProgram!editProStaff">
	<s:hidden name="proStaffInfo.programming.id" id="pprogramId" />
	<s:hidden name="proStaffInfo.id" />
		<table class="form">
			<tr>
				<th width="20%">总监制</th>
				<td width="30%"><m:dropUser  name="proStaffInfo.sysJianZhi.id" headValue="0" headKey="--请选择--"/></td>
				<th width="20%">监制</th>
				<td width="30%"><m:dropUser name="proStaffInfo.jianZhi.id" headValue="0"  headKey="--请选择--" /></td>
			</tr>
			<tr>
				<th width="20%">导播</th>
				<td width="30%"><m:dropUser name="proStaffInfo.daoBo.id" headValue="0" headKey="--请选择--"/></td>
				<th width="20%">责任编辑</th>
				<td width="30%"><m:dropUser name="proStaffInfo.sysEditor.id" headValue="0"  headKey="--请选择--" /></td>
			</tr>
			<tr>
				<th width="20%">编辑1</th>
				<td width="30%"><m:dropUser name="proStaffInfo.editor1.id" headValue="0"  headKey="--请选择--" /></td>
				<th width="20%">编辑2</th>
				<td width="30%"><m:dropUser name="proStaffInfo.editor2.id" headValue="0"  headKey="--请选择--" /></td>
			</tr>
			<tr>
				<th width="20%">编辑3</th>
				<td width="30%"><m:dropUser name="proStaffInfo.editor3.id" headValue="0"  headKey="--请选择--" /></td>
				<th width="20%">编辑4</th>
				<td width="30%"><m:dropUser name="proStaffInfo.editor4.id"  headValue="0" headKey="--请选择--" /></td>
			</tr>
			<tr>
				<th width="20%">播音1</th>
				<td width="30%"><m:dropUser name="proStaffInfo.broadcast1.id"  headValue="0" headKey="--请选择--" /></td>
				<th width="20%">播音2</th>
				<td width="30%"><m:dropUser name="proStaffInfo.broadcast2.id" headValue="0" headKey="--请选择--" /></td>
			</tr>
			<tr>
				<th width="20%">播音3</th>
				<td width="30%"><m:dropUser name="proStaffInfo.broadcast3.id"  headValue="0" headKey="--请选择--"  /></td>
				<th width="20%">播音4</th>
				<td width="30%"><m:dropUser name="proStaffInfo.broadcast4.id"  headValue="0" headKey="--请选择--" /></td>
			</tr>
			<tr>
				<th width="20%">制作1</th>
				<td width="30%"><m:dropUser name="proStaffInfo.maker1.id"  headValue="0" headKey="--请选择--"/></td>
				<th width="20%">制作2</th>
				<td width="30%"><m:dropUser name="proStaffInfo.maker2.id"  headValue="0" headKey="--请选择--"/></td>
			</tr>
			<tr>
				<th width="20%">制作3</th>
				<td width="30%"><m:dropUser name="proStaffInfo.maker3.id"  headValue="0" headKey="--请选择--"/></td>
				<th width="20%">制作4</th>
				<td width="30%"><m:dropUser name="proStaffInfo.maker4.id"  headValue="0"  headKey="--请选择--" /></td>
			</tr>
			<tr>
				<th width="20%">灯光1</th>
				<td width="30%"><m:dropUser name="proStaffInfo.lightor1.id"  headValue="0" headKey="--请选择--" /></td>
				<th width="20%">灯光2</th>
				<td width="30%"><m:dropUser name="proStaffInfo.lightor2.id"  headValue="0" headKey="--请选择--" /></td>
			</tr>
			<tr>
				<th width="20%">字幕1</th>
				<td width="30%"><m:dropUser name="proStaffInfo.ziMu.id"  headValue="0" headKey="--请选择--"/></td>
				<th width="20%">字幕2</th>
				<td width="30%"><m:dropUser name="proStaffInfo.ziMu2.id"  headValue="0" headKey="--请选择--" /></td>
			</tr>
		</table>
		<div class="buttonGroup" align="center"><input value="保存"
			type="button" onclick="commit();" id="save"></div>
	</s:form>
</s:if>
</body>
</html>